home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / umoria / externs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-28  |  4.9 KB  |  138 lines

  1. extern int character_generated;  /* don't save score until char gen finished */
  2. extern int character_saved;      /* prevents save on kill after save_char() */
  3. extern int highscore_fd;    /* High score file descriptor */
  4. extern int player_max_exp;    /* Max exp possible    */
  5. extern char norm_state[STATE_SIZE];    /* Contains seed #     */
  6. extern char randes_state[STATE_SIZE];
  7. extern int randes_seed;        /* For encoding colors */
  8. extern char town_state[STATE_SIZE];
  9. extern int town_seed;        /* Seed for town genera*/
  10. extern int cur_height, cur_width;    /* Cur dungeon size    */
  11. extern int dun_level;    /* Cur dungeon level   */
  12. extern int missile_ctr;    /* Counter for missiles */
  13. extern int msg_flag;    /* Set with first msg  */
  14. extern int generate;    /* Generate next level */
  15. extern int death;    /* True if died          */
  16. extern vtype died_from;    /* What killed him     */
  17. extern int find_flag;    /* Used in MORIA          */
  18. extern int reset_flag;    /* Used in MORIA          */
  19. extern int stat_column;    /* Column for stats    */
  20. extern unsigned int print_stat;    /* Flag for stats      */
  21. extern int turn;    /* Cur trun of game    */
  22. extern int wizard1;    /* Wizard flag          */
  23. extern int wizard2;    /* Wizard flag          */
  24. extern int panic_save;  /* this is true if playing from a panic save */
  25. extern int used_line[23];
  26. extern char password1[12];
  27. extern char password2[12];
  28.  
  29. extern int wait_for_more;
  30.  
  31. extern int key_bindings;
  32.  
  33. extern char days[7][80];
  34. extern int closing_flag;    /* Used for closing   */
  35.  
  36. /* Bit testing array                        */
  37. extern unsigned int bit_array[32];
  38.  
  39. /*  Following are calculated from max dungeon sizes        */
  40. extern int max_panel_rows, max_panel_cols;
  41. extern int panel_row, panel_col;
  42. extern int panel_row_min, panel_row_max;
  43. extern int panel_col_min, panel_col_max;
  44. extern int panel_col_prt, panel_row_prt;
  45.  
  46. /*  Following are all floor definitions                */
  47. extern cave_type cave[MAX_HEIGHT][MAX_WIDTH];
  48. extern cave_type blank_floor;
  49. extern floor_type dopen_floor;
  50. extern floor_type lopen_floor;
  51. extern floor_type corr_floor1;
  52. extern floor_type corr_floor2;
  53. extern floor_type corr_floor3;
  54. extern floor_type corr_floor4;
  55. extern floor_type rock_wall1;
  56. extern floor_type rock_wall2;
  57. extern floor_type rock_wall3;
  58. extern floor_type boundary_wall;
  59.  
  60. /* Following are player variables                */
  61. extern player_type py;
  62. extern btype player_title[MAX_CLASS][MAX_PLAYER_LEVEL];
  63. extern int player_exp[MAX_PLAYER_LEVEL];
  64. extern double acc_exp;                      /* Accumulator for fractional exp*/
  65. extern dtype bare_hands;
  66. extern int char_row;
  67. extern int char_col;
  68. extern int global_com_val;
  69. extern race_type race[MAX_RACES];
  70. extern background_type background[MAX_BACKGROUND];
  71. extern double rgold_adj[MAX_RACES][MAX_RACES];
  72.  
  73. /* SUN4 has a variable called class in the include file <math.h>
  74.    avoid a conflict by not defining my class in the file misc1.c */
  75. #ifndef DONT_DEFINE_CLASS
  76. extern class_type class[MAX_CLASS];
  77. #endif
  78.  
  79. extern spell_type magic_spell[MAX_CLASS][31];
  80. extern treasure_type mush;
  81. extern byteint player_init[MAX_CLASS][5];
  82. extern int total_winner;
  83.  
  84. /* Following are store definitions                */
  85. extern owner_type owners[MAX_OWNERS];
  86. extern store_type store[MAX_STORES];
  87. extern treasure_type store_door[MAX_STORES];
  88. extern int store_choice[MAX_STORES][STORE_CHOICES];
  89.  
  90. int (*store_buy[MAX_STORES])();
  91.  
  92. /* Following are treasure arrays    and variables            */
  93. extern treasure_type object_list[MAX_OBJECTS];
  94. extern int object_ident[MAX_OBJECTS];
  95. extern int t_level[MAX_OBJ_LEVEL];
  96. extern treasure_type gold_list[MAX_GOLD];
  97. extern treasure_type t_list[MAX_TALLOC];
  98. extern treasure_type inventory[INVEN_ARRAY_SIZE];
  99. extern treasure_type inventory_init[INVEN_INIT_MAX];
  100. extern treasure_type blank_treasure;
  101. extern int inven_ctr;            /* Total different obj's    */
  102. extern int inven_weight;    /* Cur carried weight    */
  103. extern int equip_ctr;      /* Cur equipment ctr    */
  104. extern int tcptr;          /* Cur treasure heap ptr    */
  105.  
  106. /* Following are feature objects defined for dungeon        */
  107. extern treasure_type trap_lista[MAX_TRAPA];
  108. extern treasure_type trap_listb[MAX_TRAPB];
  109. extern treasure_type scare_monster;    /* Special trap    */
  110. extern treasure_type rubble;
  111. extern treasure_type door_list[3];
  112. extern treasure_type up_stair;
  113. extern treasure_type down_stair;
  114.  
  115. /* Following are creature arrays and variables            */
  116. extern creature_type c_list[MAX_CREATURES];
  117. extern monster_type m_list[MAX_MALLOC];
  118. extern int m_level[MAX_MONS_LEVEL];
  119. extern monster_type blank_monster;    /* Blank monster values    */
  120. extern int muptr;    /* Cur used monster ptr    */
  121. extern int mfptr;    /* Cur free monster ptr    */
  122. extern int mon_tot_mult;    /* # of repro's of creature    */
  123.  
  124. /* Following are arrays for descriptive pieces            */
  125. extern atype colors[MAX_COLORS];
  126. extern atype mushrooms[MAX_MUSH];
  127. extern atype woods[MAX_WOODS];
  128. extern atype metals[MAX_METALS];
  129. extern atype rocks[MAX_ROCKS];
  130. extern atype amulets[MAX_AMULETS];
  131. extern dtype syllables[MAX_SYLLABLES];
  132.  
  133. /* function return values */
  134. char *pad();
  135. byteint de_statp();
  136. byteint in_statp();
  137. char *likert();
  138.